package com.example.model.oss;

public class FileInfo {
    /**
        * 存储策略
     */
    private String storage;

    /**
     * 文件位置
     */
    private String bucketName;


    /**
     * 文件名
     */
    private String fileName;

    /**
     * 原文件名
     */
    private String fileOriginalName;

    /**
     * 文件大小
     */
    private long fileSize;

    /**
     * 文件类型
     */
    private String contentType;

    private String fileUrl;

    public FileInfo() {
    }

    public FileInfo(String storage, String bucketName, String fileName, String fileOriginalName, long fileSize, String contentType, String fileUrl) {
        this.storage = storage;
        this.bucketName = bucketName;
        this.fileName = fileName;
        this.fileOriginalName = fileOriginalName;
        this.fileSize = fileSize;
        this.contentType = contentType;
        this.fileUrl = fileUrl;
    }

    public String getStorage() {
        return storage;
    }

    public void setStorage(String storage) {
        this.storage = storage;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileOriginalName() {
        return fileOriginalName;
    }

    public void setFileOriginalName(String fileOriginalName) {
        this.fileOriginalName = fileOriginalName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Override
    public String toString() {
        return "FileInfo{" +
                "storage='" + storage + '\'' +
                ", bucketName='" + bucketName + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileOriginalName='" + fileOriginalName + '\'' +
                ", fileSize=" + fileSize +
                ", contentType='" + contentType + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                '}';
    }
}
